<!-- <div class="groups index">
	<h2><?php echo __('Groups'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<thead>
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('name'); ?></th>
			<th><?php echo $this->Paginator->sort('created'); ?></th>
			<th><?php echo $this->Paginator->sort('modifired'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	</thead>
	<tbody>
	<?php foreach ($groups as $group): ?>
	<tr>
		<td><?php echo h($group['Group']['id']); ?>&nbsp;</td>
		<td><?php echo h($group['Group']['name']); ?>&nbsp;</td>
		<td><?php echo h($group['Group']['created']); ?>&nbsp;</td>
		<td><?php echo h($group['Group']['modifired']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $group['Group']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $group['Group']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $group['Group']['id']), array(), __('Are you sure you want to delete # %s?', $group['Group']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</tbody>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Group'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Customers'), array('controller' => 'customers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Customer'), array('controller' => 'customers', 'action' => 'add')); ?> </li>
	</ul>
</div>
 -->


 <section id="content">
        <section class="main padder">
            <div class="clearfix">
                <h4><i class="fa fa-list"></i>List Groups</h4>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        
                        <div class="panel-body">
                            <div class="row text-small">
                                <div class="col-sm-4 m-b-mini">

                                </div>
                                <div class="col-sm-4 m-b-mini">
                                
                                </div>
                                <div class="col-sm-4">
                                    <div class="input-group">
                                        <input type="text" class="input-sm form-control" placeholder="Search">
                                        <span class="input-group-btn">
                                            <button class="btn btn-sm btn-white" type="button">Go!</button>
                                        </span></div>
                                </div>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped b-t text-small">
                                <thead>
                                    <tr>
                                        <th width="20">
                                            <input type="checkbox"></th>
                                        <!--<th class="th-sortable" data-toggle="class"> <span class="th-sort"><i class="fa fa-sort-down text"></i><i class="fa fa-sort-up text-active"></i><i class="fa fa-sort"></i></span> </th>-->
                                        <th><?php echo $this->Paginator->sort('name'); ?></th>
                                        <th><?php echo $this->Paginator->sort('created'); ?></th>
                                        <th><?php echo $this->Paginator->sort('modifired'); ?></th>
                                        <th width="30"></th>
                                    </tr>
                                </thead>
                                <tbody>
                                	<?php foreach ($groups as $group): ?>
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="post[]" value="<?php echo h($group['Group']['id']); ?>"></td>
                                        <td><a href="#modal" data-toggle="modal" id="<?php echo h($group['Group']['id']); ?>" class="viewdetail"><?php echo h($group['Group']['name']); ?></a></td>
                                        <td><?php echo h($group['Group']['created']); ?></td>
                                        <td><?php echo h($group['Group']['modifired']); ?></td>
                                        <td><a href="#"  class="active" data-toggle="class"><i class="fa fa-check fa-lg text-success text-active"></i><i class="fa fa-times fa-lg text-danger text"></i></a></td>
                                    </tr>
                                    <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                        <footer class="panel-footer">
                            <div class="row">
                                <div class="col-sm-4 hidden-xs">
                                    <button class="btn btn-danger">Delete Selected</button>
                                    <button class="btn btn-private" href="#modal" data-toggle="modal">add</button>
                                </div>
                                <div class="col-sm-3 text-center"><small class="text-muted inline m-t-small m-b-small">showing 20-30 of 50 items</small> </div>
                                <div class="col-sm-5 text-right text-center-sm">
                                    
                                    <ul class="pagination pagination-small m-t-none m-b-none">
<?php
	echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
	echo $this->Paginator->numbers(array('separator' => '','tag' => 'li', 'currentTag' => 'a', 'currentClass' => 'active')); 
	echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
?>
</ul>
                                </div>
                            </div>
                        </footer>
                    </section>
                </div>
            </div>
        </section>
</section>

<div id="modal1" class="modal fade">
        <form class="m-b-none">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button class="close" data-dismiss="modal" type="button">
                         <i class="fa fa-times"></i></button>
                        
                        </div>
                    <div class="modal-body">
                        <div id="contenttab"></div>

<section class="panel">
    <div class="panel-body">
        <?php echo $this->Form->create('Group',array('class'=>'form-horizontal','label'=>false)); ?>
        <div class="form-group">
            <label class="col-lg-3 control-label">Group Name</label>
            <div class="col-lg-8">
                <?php
                    echo $this->Form->input('name', array('label'=>false,'placeholder'=>'Group name','required'=>'required', 'class'=>'form-control','type'=>'text'));
                ?>
            </div>
        </div>

        <div class="form-group">
            <div class="col-lg-9 col-lg-offset-3">
                <?php echo $this->Form->submit('Create',array('class'=>'btn btn-primary'));?>
                
            </div>
        </div>

        <?php echo $this->Form->end(); ?>
    </div>  
</section>

                    </div>
                   
                </div>
                <!-- /.modal-content -->
            </div>
        </form>
    </div>